package com.zj.project.activity

import android.os.Bundle
import android.util.Log
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.liveData
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.zj.project.BR
import com.zj.project.R
import com.zj.project.databinding.ActivityMainBinding
import com.zj.project.common.base.BaseActivity
import com.zj.project.viewmodel.MainViewModel
import kotlinx.coroutines.launch
import kotlin.math.log

class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
    override fun layoutId(): Int {
        return R.layout.activity_main
    }

    override fun initData(savedInstanceState: Bundle?) {

        repeat(8){
            Log.e("--------->", "协程执行$it 线程id：${Thread.currentThread().id}")
        }

    }

    override fun variableId(): Int {
        return BR.main
    }

}